package com.ly.hotel.model;

import java.util.ArrayList;
import java.util.List;


public class Vodpart implements java.io.Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7064530697145086485L;
	
	private Integer sizeOfpage = 100000;//这个数值不能改了，也就是不再支持分页，因为目前会过滤掉不支持的视频大小
	
	private Integer id;
	private String name;
//	private String partintr;
//	private String xmlpath;
	private Integer no;//加载到第几页
	private Integer size;//每页的数量
	private List<VodVideoBean> vodVideoBeanList;
	// Constructors

	/** default constructor */
	public Vodpart() {
		this.no = 0;
		this.size = sizeOfpage;
	}

	/** minimal constructor */
	public Vodpart(String vodpartname) {
		this.no = 0;
		this.size = sizeOfpage;
		this.name = vodpartname;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getVodpartname() {
		String name = this.name;
		String n[] = name.split(":");	//后台加上了类别拼音检索，这里重置一下类别名称
		if(n.length > 1){
			name = n[0];
		}
		return name;
	}
	
	public String getAllname() {
		return this.name;
	}

	public void setVodpartname(String vodpartname) {
		this.name = vodpartname;
	}

/*	public String getPartintr() {
		return this.partintr;
	}

	public void setPartintr(String partintr) {
		this.partintr = partintr;
	}

	public String getXmlpath() {
		return this.xmlpath;
	}

	public void setXmlpath(String xmlpath) {
		this.xmlpath = xmlpath;
	}
*/
	public List<VodVideoBean> getVodvideoBeanList() {
		return vodVideoBeanList;
	}

	public void addVodvideoBean(VodVideoBean vvb) {
		if(this.vodVideoBeanList != null){
			this.vodVideoBeanList.add(vvb);
		}else{
			this.vodVideoBeanList = new ArrayList<>();
			this.vodVideoBeanList.add(vvb);
		}
	}
	public Integer getNo() {
		return no;
	}

	public void setNo(Integer no) {
		this.no = no;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

}